import { configureStore } from "@reduxjs/toolkit"

import mainReducer from "./modules/main"
import homeReducer from "./modules/home"
import entireReducer from "./modules/entire"
import detailReducer from "./modules/detail"

// configureStore 无论是普通方式还是rtk方式创建的都可以拿进来
const store = configureStore({
  reducer: {
    home: homeReducer,
    entire: entireReducer,
    detail: detailReducer,
    main: mainReducer,
  },
})

export default store
